
public class NotAvailable implements ItemState
{
	private Item item;
	public NotAvailable(Item i)
	{
		item=i;
	}
	@Override
	public boolean processIncoming()
	{
		//System.out.println("Item sucessfully processed(Incoming)");
		item.setState(item.getAvailableState());
		return true;
	}

	@Override
	public boolean processOutgoing(CustomerAccount c)
	{
		//System.out.println("Item not available.");
		return false;
	}

}
